<script type="text/javascript">
function showreview()
{
    var fu='<{$smarty.cookies.USER}>';
	if (fu=='')
	{
	  alert('<{$lang.no_logo}>');
	   window.location.href='<{$config.weburl}>/login.php';
	  return false;
	}
	else
	{
	document.getElementById("reviewt").style.display='block';
	}
} 
function getfav()
{	
	var url = '<{$config.weburl}>/ajax_back_end.php';
	var myurl=document.location.href;
	myurl=myurl.replace('&','*');
	var u='<{$smarty.cookies.USER}>';
	if (u=='')
	{
	   alert('<{$lang.no_logo}>');
	   window.location.href='<{$config.weburl}>/login.php';
	   return false;
	}
	var fu='<{$de.id}>';
 	var typ='4';
	var ttil='<{$de.title}>';
	var mpic='<{$de.imgurl}>';
	var des='<{$de.con|strip_tags|truncate:100:"...":true|escape:"javascript"}>';
    var pars = 'user='+u+'&fid='+fu+'&type='+typ+'&title='+ttil+'&url='+myurl+'&des='+des+'&picurl='+mpic;
	var myAjax = new Ajax.Request(url,{method: 'post', parameters: pars, onComplete: showResponse});
	function showResponse(originalRequest)
	{
	    if(originalRequest.responseText>1)
	            alert('<{$lang.fav_ok}>');
		else if (originalRequest.responseText>0)
	            alert('<{$lang.fav_isbeing}>');
		else
	            alert('<{$lang.error}>');
	}
}
function printcontent()
{
	var printw = window.open('','','');
	printw.opener = null;
	printw.document.write('<div style="width:700px;">'+document.getElementById('newscon').innerHTML+'</div>');
	printw.window.print();
}
function picwidth(pid, img)
{
	var img = img ? img : 710;
	var wid= pid.width;
	if(wid < img)
	{
		return;
	} 
	else 
	{
		var hei = pid.height;
		pid.title = 'View big photo';
		pid.onclick=function (e){window.open(pid.src);}
		pid.height = parseInt(hei*img/wid);
		pid.width =img;
	}
}
</script>
<div class="middle-newslist">
    <div class="Middle-two-content-left-newlist">
        <div class="Middle-two-content-Middle-top">
            <span class="feiji"><a href='<{$config.weburl}>/'><{$lang.indexpage}></a> > <a href="<{$config.weburl}>/?m=exhibition"><{$lang.exh}></a> > 正文</span>		
        </div>
        <div class="Middle-two-content-Middle-top-newlist">
            <div class="newsbodyleft">
<div class="newstitle"><{$de.title}></div>

<div style="border-bottom:1px solid #cfcfcf; width:98%; border-top:1px solid #cfcfcf; margin-bottom:10px; margin-top:10px; text-align:center;">
发布日期：<{$de.addTime}> <{insert name="label" type="statics" temp='statics_default' ctype=4 id=$de.id}>
<a href="#" onClick="getfav();"><{$lang.fav}></a> <a href="#" onClick="printcontent();"><{$lang.print}></a>
</div>
<table align="left" width="98%" border="0" cellpadding="3" cellspacing="1" bgcolor="#cfcfcf" class="exhibition">
  <tr>
    <td width="19%" align="left" bgcolor="#efefef"><strong><{$lang.exh_country}></strong></td>
    <td width="81%" align="left" bgcolor="#FFFFFF"><{$de.country}></td>
  </tr>
  <tr>
    <td align="left" bgcolor="#efefef"><strong><{$lang.exh_cat}></strong></td>
    <td align="left" bgcolor="#FFFFFF"><{$de.cat}></td>
  </tr>
  <tr>
    <td align="left" bgcolor="#efefef"><strong><{$lang.exh_time}></strong></td>
    <td align="left" bgcolor="#FFFFFF"><{$de.stime|date_format}><{$lang.timeto}><{$de.etime|date_format}></td>
  </tr>
  <tr>
    <td align="left" bgcolor="#efefef"><strong><{$lang.exh_city}></strong></td>
    <td align="left" bgcolor="#FFFFFF"><{$de.city}></td>
  </tr>
  <tr>
    <td align="left" bgcolor="#efefef"><strong><{$lang.exh_addr}></strong></td>
    <td align="left" bgcolor="#FFFFFF"><{$de.addr}></td>
  </tr>
  <tr>
    <td align="left" bgcolor="#efefef"><strong><{$lang.exh_room}></strong></td>
    <td align="left" bgcolor="#FFFFFF"><{$de.showroom}></td>
  </tr>
  <tr>
    <td align="left" bgcolor="#efefef"><strong><{$lang.exh_org}></strong></td>
    <td align="left" bgcolor="#FFFFFF"><{$de.organizers}></td>
  </tr>
  <tr>
    <td align="left" bgcolor="#efefef"><strong><{$lang.exh_contractors}></strong></td>
    <td align="left" bgcolor="#FFFFFF"><{$de.contractors}></td>
  </tr>
  <tr>
    <td align="left" bgcolor="#efefef"><strong><{$lang.exh_contact}></strong></td>
    <td align="left" bgcolor="#FFFFFF"><{$de.contact}></td>
  </tr>
  <tr>
    <td align="left" bgcolor="#efefef"><strong><{$lang.exh_tel}></strong></td>
    <td align="left" bgcolor="#FFFFFF"><{$de.tel}></td>
  </tr>
  <tr><td bgcolor="#efefef"><strong>分享</strong></td><td bgcolor="#FFFFFF"><div class="bshare-custom"><a title="分享到QQ空间" class="bshare-qzone"></a><a title="分享到新浪微博" class="bshare-sinaminiblog"></a><a title="分享到人人网" class="bshare-renren"></a><a title="分享到开心网" class="bshare-kaixin001"></a><a title="分享到豆瓣" class="bshare-douban"></a><a title="更多平台" class="bshare-more bshare-more-icon"></a><span class="BSHARE_COUNT bshare-share-count">0</span></div><script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/buttonLite.js#style=-1&amp;uuid=&amp;pophcol=2&amp;lang=zh"></script><script type="text/javascript" charset="utf-8" src="http://static.bshare.cn/b/bshareC0.js"></script></td></tr>
</table>
<div class="newscon" id="newscon">
<{if $de.pic!=''}>
	<img style="float:left" src="<{$de.pic}>"  alt="<{$de.title}>" />
<{/if}>
<{$de.con}>
</div>
<{insert name="label" type="comment" ctype=4 cid=$smarty.get.id temp="comment_default" }>
</div>
<script type="text/javascript">
window.onload = function(){
	var pics = document.getElementById('newscon').getElementsByTagName("img");
	for(var i=0;i<pics.length;i++)	{
		picwidth(pics[i], 710);
	}
}
</script>
        </div>
    </div>
    <div class="Middle-two-content-right-newlist2">
        <div class="Middle-two-content-right2">
            <div class="Middle-two-content-right-newlist-top">
                <span class="xinpin">展会新闻</span>
                <span class="fuhao">>></span>
                <span class="gengduo"><a href="index.php?m=news&s=news_list&id=168">更多</a></span>
            </div>
            <div class="Middle-two-content-right-new-top-button2">
                    <ul>
                        <{insert name="getNews" limit=9 leng=22 catid=168 istime=true}>
                    </ul>
                </div>
        </div>
        <div class="Middle-two-content-right-newlist">
            <div class="Middle-two-content-right-newlist-top">
                <span class="xinpin">展馆介绍</span>
            </div>
            <div class="Middle-two-content-right-new-top-button2">
                    <ul>
                        <{insert name="label" type='exhibition_showroom' temp='exhibition_showroom' limit=9}>
                       
                    </ul>
                </div>
        </div>
    </div>